<include file=".:Common:header" />
<script type="text/javascript">
function clear(){
	$.ajax({
		url:'{:U("System/Clear/clear")}',
		dataType:'json',
		success:function(data){
			alert(data.info);
		}
	});
}
</script>
<div class="wrapper clear">
	<div class="main">
		<if condition="!empty($button)">
        <div class="toolbar">
			<a href="{:U('system/Sets/add')}" id="addnewitem">添加新项</a>
			<a href="{:U('system/Sets/baseset')}" id="setinit">设置初始化</a>
			<a href="javascript:clear()" id="remove">清除缓存</a>
		</div>
		</if>
		<div class="search">
            <div class="searchbox">
	
	
    <form action="{:U('Sets/index')}" method="post">
	<div class="easyui-tabs" style="overflow:hidden;">
    	<volist name="group" id="group">
        <div title="{$group.text}" style="padding:10px;">
        <table class="tableform" cellpadding="0" cellspacing="0" style="width:900px;">
        <if condition="!empty($group['group'])">
        <volist name="group['group']" id="gp">
          <tr>
            <th>{$gp.name}：</th>
            <td>
            <eq name="gp['type']" value="text">
            <input type="text" value="{$gp.value}" name="sets[{$gp.id}]" style="width:250px;" class="text" />
            </eq>
            <eq name="gp['type']" value="textarea">
            <textarea name="sets[{$gp.id}]" style="width:300px; height:60px;">{$gp.value}</textarea>
            </eq>
            <eq name="gp['type']" value="password">
            <input type="password" value="{$gp.value}" name="sets[{$gp.id}]" style="width:250px;" class="text" />
            </eq>
            <eq name="gp['type']" value="manual">
            
            </eq>
            <eq name="gp['type']" value="select">
            <select name="sets[{$gp.id}]">
            <if condition="!empty($gp['value_list']) && is_array($gp['value_list'])">
            <volist name="gp['value_list']" id="list">
            <option value="{$list.value}" <if condition="$list['value'] eq $gp['value']">selected</if>>{$list.text}</option>
            </volist>
            </if>
            </select>
            </eq>
            <if condition="!empty($gp['desc'])">
            <p class="notice">{$gp.desc}</p>
            </if>
            </td>
          </tr>
        </volist>
        </if>
        </table>
        </div>
        </volist>
        <!--添加-->
<table id="aa"   align="center">
  <tr>
    <td align="center" colspan="2"><input type="submit" value="保存设置" class="submit" style="margin:10px auto;"/></td>
  </tr>
</table>
<!--end添加--> 
    </div>
  	</form>	
	
	
			</div>
		</div>		
	</div>
</div>	
<include file=".:Common:footer" />